var config = require('./config'),
    mongoose = require('mongoose');

module.exports = function() {
    var db = mongoose.connect(config.db);
    /**
    db.on('err', function(err) {
        console.log(err);
    });
    */
    require('../app/models/user.server.model');
    return db;
};
